export const second2time = (second) => {
    let result = "";
    if (second > -1) {
        let min = Math.floor(second / 60) % 60,
            sec = second % 60;
        if (min < 10)
            result += "0";
        result += min + ":";

        if (sec < 10)
            result += "0";

        result += sec;
    }
    return result;
}